-- GENERATED SPELL FOR [Syth Shadow Elemental] --


function spell0_19206(pUnit, Event) --@Shadow Buffet,n/a--
pUnit:FullCastSpellOnTarget(33529,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19206', 22200, 1)
end

function spell1_19206(pUnit, Event) --@Shadow Buffet,n/a--
pUnit:FullCastSpellOnTarget(38143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19206', 22200, 1)
end

function Sorts_19206(pUnit, Event)
local choix_sorts_19206 = math.random(0, 1)
if choix_sorts_19206 == 0 then
pUnit:RegisterEvent('spell0_19206', 1, 1)
end
if choix_sorts_19206 == 1 then
pUnit:RegisterEvent('spell1_19206', 1, 1)
end
end

function mob19206_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19206', math.random(1500, 3000), 1)
end

function mob19206_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19206_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19206_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19206, 1, 'mob19206_Action')
RegisterUnitEvent(19206, 2, 'mob19206_Leave')
RegisterUnitEvent(19206, 3, 'mob19206_Kill')
RegisterUnitEvent(19206, 4, 'mob19206_Die')
